package com.shopping.mall.core.module.mainPage.entity;

import com.sun.tools.javac.Main;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;
import java.util.Map;

/**
 * @Author ZZY
 * @Date 2021/9/2
 */
@Data
@Valid
public class MainPageVo {

    @ApiModelProperty(value = "主轮播图")
    @NotEmpty(message = "???")
    private List<Map<String,String>> mainSlideshows;

    @ApiModelProperty(value = "底下那几个图片(也可以是轮播图)")
    @NotEmpty
    private List<Map<String,String>> secondaryImages;

    @ApiModelProperty(value = "侧边两个图片")
    @NotEmpty
    private List<Map<String,String>> sideImages;

    @ApiModelProperty(value = "左边链接")
    @NotEmpty
    private Map<String,String> leftText;

    @ApiModelProperty(value = "右边链接")
    @NotEmpty
    private Map<String,String> rightText;

    @ApiModelProperty(value = "示例的商品id")
    @NotBlank
    private String exampleGoodsId;

    @NotBlank
    private String selfDefineModules;

    @NotBlank
    private String logo;

}
